﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Data
{
    public class HoaDon
    {
        public long Id { get; set; }
        public long NguoiDungId { get; set; }
        public long TongTien { get; set; }
        public int TrangThai { get; set; }
        public DateTime ThoiGian { get; set; }
        public List<HoaDonChiTiet> lstChiTiet { get; set; }
        public string TrangThaiTen { get; set; }
    }
    public class HoaDonChiTiet
    {
        public long Id { get; set; }
        public long HoaDonId { get; set; }
        public long SanPhamId { get; set; }
        public string SanPhamTen { get; set; }
        public long GiaTien { get; set; }
        public long SoLuong { get; set; }
        public int TrangThai { get; set; }
        public DateTime ThoiGian { get; set; }

        //View
        public int STT { get; set; }
    }
}
